home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-06-16 | 3.4 KB | 133 lines | [TEXT/MPS ] |
- #
- # SCSI DriveID Sample
- # Copyright © 19994, Apple Computer Inc. All rights reserved.
- #
- # This Makefile builds the SCSI Get Drive ID sample as a "fat" binary
- # that runs native on 68000 and Power PC systems. It requires the MPW
- # 3.3 distribution from the Macintosh on Risc SDK
- #
- Src = ":Src:"
- Obj = ":Obj:"
- PPCObjects = ∂
- {Obj}AsyncSCSIPresent.c.po ∂
- {Obj}SCSIDriveIDSample.c.po ∂
- {Obj}ShowAllDriveQueueElements.c.po ∂
- {Obj}ShowAllMountedVolumeNames.c.po ∂
- {Obj}ShowRegisteredSCSIDevices.c.po ∂
- {Obj}ShowSCSIDeviceIdent.c.po ∂
- {Obj}ShowSystemVolumeID.c.po
-
- M68Objects = ∂
- {Obj}AsyncSCSIPresent.c.mo ∂
- {Obj}SCSIDriveIDSample.c.mo ∂
- {Obj}ShowAllDriveQueueElements.c.mo ∂
- {Obj}ShowAllMountedVolumeNames.c.mo ∂
- {Obj}ShowRegisteredSCSIDevices.c.mo ∂
- {Obj}ShowSCSIDeviceIdent.c.mo ∂
- {Obj}ShowSystemVolumeID.c.mo
-
- #
- # Directory dependencies. "Everything in the {Obj} directory depends on
- # something in the {Src} directory." Note: you can throw away the contents
- # of the {Obj} directory if you want to rebuild from scratch.
- #
- {Obj} ƒ {Src}
-
- #
- # Compiler dependencies -- common to all compilations. The idea here is that all
- # sources are stored in the {Src} subdirectory, and all objects and code resources
- # output by the linker or Rez are stored in the {Obj} subdirectory. Note that
- # we define MPW to simplify portability: this sample compiles under Think C, MPW
- # 3.3, and Macintosh on Risc (FastTrack). It has not been tested on MetroWerks.
- #
- .c.po ƒ .c ∂
- {Src}SCSI.h
- PPCC -sym on -appleext on -d MPW ∂
- -o {TargDir}{Default}.c.po ∂
- {DepDir}{Default}.c
-
- .c.mo ƒ .c ∂
- {Src}SCSI.h
- C {COptions} -d MPW ∂
- -o {TargDir}{Default}.c.mo ∂
- {DepDir}{Default}.c
-
- #
- # Build the MetroWerks resources
- #
- MetroWerks ƒ ∂
- "SCSIIDSample.µ.rsrc"
- echo "MetroWerks resources created"
-
- #
- # Build the application.
- #
- "SCSIDriveIDSample MPW" ƒƒ ∂
- MakeFile ∂
- "SCSIIDSample.µ.rsrc" ∂
- {Src}SCSIDriveIDSample.r
- Rez ∂
- {Src}SCSIDriveIDSample.r ∂
- -append ∂
- -t APPL ∂
- -i "{CIncludes}" ∂
- -i "{RIncludes}" ∂
- -d __powerc=1 ∂
- -o {targ}
-
- "SCSIDriveIDSample MPW" ƒƒ ∂
- MakeFile ∂
- {M68Objects}
- Link ∂
- -t APPL ∂
- {M68Objects} ∂
- "{CLibraries}"StdCLib.o ∂
- "{Libraries}"Runtime.o ∂
- "{Libraries}"Interface.o ∂
- -o {targ}
-
- "SCSIDriveIDSample MPW" ƒƒ ∂
- SCSIDriveIDSample.xcoff
- MakePEF ∂
- {deps} ∂
- -l InterfaceLib.xcoff=InterfaceLib ∂
- -l StdCLib.xcoff=StdCLib ∂
- -o {targ} ∂
- -ft APPL -fc '????'
-
- "SCSIDriveIDSample.xcoff" ƒ ∂
- MakeFile ∂
- {PPCObjects}
- PPCLink ∂
- {PPCObjects} ∂
- "{PPCLibraries}"StdCLib.xcoff ∂
- "{PPCLibraries}"InterfaceLib.xcoff ∂
- "{PPCLibraries}"PPCCRuntime.o ∂
- -main main ∂
- -o {targ}
-
- #
- # This builds a project resource file for the
- # Metrowerks DR3 environment. It is also
- # available as a stand-alone Makefile.
- # Hack: MPW tries to create
- # "SCSIDriveIDSample.µ.rsrc.makeout", which
- # is longer than the maximum file name length.
- #
- "SCSIIDSample.µ.rsrc" ƒ ∂
- MakeFile ∂
- {Src}SCSIDriveIDSample.r
- Rez ∂
- {Src}SCSIDriveIDSample.r ∂
- -append ∂
- -t rsrc ∂
- -c RSED ∂
- -i "{CIncludes}" ∂
- -i "{RIncludes}" ∂
- -o {targ}
- Duplicate ∂
- "SCSIIDSample.µ.rsrc" ∂
- "SCSIDriveIDSample.µ.rsrc"
-
-
-